package com.cx.service.serviceimp;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.cx.mapper.CollectMapper;
import com.cx.entity.Collect;
import com.cx.service.CollectService;
@Service
public class CollectServiceImpl implements CollectService{

    @Resource
    private CollectMapper collectMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return collectMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Collect record) {
        return collectMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(Collect record) {
        return collectMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(Collect record) {
        return collectMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(Collect record) {
        return collectMapper.insertSelective(record);
    }

    @Override
    public Collect selectByPrimaryKey(Integer id) {
        return collectMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Collect record) {
        return collectMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Collect record) {
        return collectMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<Collect> list) {
        return collectMapper.updateBatch(list);
    }

    @Override
    public int batchInsert(List<Collect> list) {
        return collectMapper.batchInsert(list);
    }

}
